package com.bsj.pay.model;

import java.io.Serializable;

import com.bsj.pay.util.json.serializer.DateTimeJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class IpPoolBean implements Serializable {
	private static final long serialVersionUID = -8390294158843856272L;
	private Long id;
	private String ip;
	private Integer port;
	private Integer use_count;
	@JsonSerialize(using = DateTimeJsonSerializer.class)
	private Long expire_time;
	private String city;

	public Integer getUse_count() {
		return this.use_count;
	}

	public void setUse_count(Integer use_count) {
		this.use_count = use_count;
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Integer getPort() {
		if (this.port == null) {
			return Integer.valueOf(0);
		}
		return this.port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public Long getExpire_time() {
		return this.expire_time;
	}

	public void setExpire_time(Long expire_time) {
		this.expire_time = expire_time;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}
}
